package com.junjie.blibli.dao.repository;


import com.junjie.blibli.Entity.Video;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

//第二个泛型是主键ID
public interface VideoRepository extends ElasticsearchRepository<Video, Long> {
    //跟jpa一样，可以直接用命名法去查询
    Video findByTitleLike(String keyword);
}
